﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FrameWork.Lib
{
    public static class DataObjectExt
    {
        public static void Replace(this List<FrameWork.Lib.DataObjects.DataObjectBase> pList, FrameWork.Lib.DataObjects.DataObjectBase pItem)
        {
            pList.RemoveAll(t => t.DataObjectGUID == pItem.DataObjectGUID);
            pList.Add(pItem);
        }
    }
}
